import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
	{
		name: 'index',
		path: '/',
		meta: { title: '首页' },
		component: () => import('@/views/Index.vue')
	},
	{
		name: 'detail',
		path: '/detail',
		meta: { title: '详情' },
		component: () => import('@/views/Detail.vue')
	},
	{
		name: 'inform',
		path: '/inform',
		meta: { title: '通知' },
		component: () => import('@/views/Inform')
	}
]

const router = createRouter({
	history: createWebHistory(),
	routes
})

export default router
